USAGE: fitpolyg infile outimg [-t THRESHOLD] [-c] [-w file] [-L]
fitpolyg performs polygonal line fitting to image
lines; straight line fits are made to portions of each segment
to best approximate the chain of points comprising the segment;
a segment is a chain of points between features, either
endpoint features or junction features.
ARGUMENTS:
infile: input filename (PCC)
outimg: output image filename (TIF)
OPTIONS:
-t THRESH: threshold on error for polygonal fit (default
= 5);
the smaller is this threshold, the closer will be the
polygonal fit to the original data, but the more straight
line fit segments will be required.
-c: when set,
prints out the (x,y) coordinates of the
polygonal fit endlines.
-w file: save line segment data to a file(.seg)
for analysis by xsgll
-L: print Software
License for this module
Example:
fitpolyg magstrpTH.pcc magstrpTHfit.tif -w magstrpTHfit.seg
magstrpTH.pcc:
Binary file (not displayable)
magstrpTHfit.tif: (image inverted)
magstrpTHfit.seg:
753 512 480
0 8 8 20 10
0.17 0
1 20 10 37 3
-0.41 0
2 93 3 124 42
1.26 1
3 124 42 149 45 0.12
1
4 149 45 176 3 -1.56
1
5 105 3 129 30
1.13 2
6 129 30 146 31 0.06
2
7 146 31 163 3 -1.65
2
8 117 3 136 20
0.89 3
9 136 20 146 10 -1.00
3
10 146 10 150 3 -1.75
3
11 128 3 137 3
0.00 4
12 137 3 138 3
0.00 4
13 244 475 233 460 1.36 5
14 233 460 243 387 -7.30 5
15 243 387 264 373 -0.67 5
16 264 373 292 354 -0.68 5
etc...
magstrpTH.tif:
Copyright (C) 1999 MLMSoftware Group, LLC.